package com.zengqingfa.designpattern.create.builder.standard;

/**
 *
 * @fileName: Client
 * @author: zengqf3
 * @date: 2021-4-22 13:52
 * @description:
 */
public class Client {

    public static void main(String[] args) {
        //指挥者
        Director director = new Director();
        //具体的建造者
        ConcreteBuilder concreteBuilder = new ConcreteBuilder();
        //指挥者指挥建造者建造
        director.construct(concreteBuilder);
        //获取产品
        Product product = concreteBuilder.getProduct();
        //Product{part1='part1', part2='part2'}
        System.out.println(product);
    }
}
